chore(sec-core): remerge v0.10.0 branch commits - #2552
Merged
Conversation
The cosh prompt-scanner hook passed the user prompt as a `--text` argv to `agent-sec-cli scan-prompt`, leaking it via /proc/<pid>/cmdline to other local users and risking E2BIG fail-open when a large prompt exceeded ARG_MAX (~2MB). Pipe the prompt via stdin instead, matching codex/hermes/qoder/ qwen. agent-sec-cli scan-prompt already reads stdin when --text is absent, so no CLI change is needed. The trace-context test is updated to drop --text from the expected argv and assert the stdin kwarg; a new test_prompt_passed_via_stdin_not_argv locks it. Closes #2373 Assisted-by: Qoder:1.22.1 Signed-off-by: Shirong Hao <shirong@linux.alibaba.com>
The openclaw prompt-scan capability passed the user prompt as a `--text` argv to `agent-sec-cli scan-prompt`, leaking it via /proc/<pid>/cmdline to other local users and risking E2BIG fail-open when a large prompt exceeded ARG_MAX (~2MB). Pipe the prompt via the existing `stdin` option on callAgentSecCli instead, matching codex/hermes/qoder/qwen. agent-sec-cli scan-prompt already reads stdin when --text is absent, so no CLI change is needed. Unit tests are updated to assert `opts.stdin` and the absence of `--text` in argv. Closes #2373 Signed-off-by: Shirong Hao <shirong@linux.alibaba.com>
prompt-scan.ts pipes the prompt via stdin (callAgentSecCli opts.stdin) to avoid /proc/<pid>/cmdline exposure and ARG_MAX limits, mirroring codex/hermes/qoder/qwen. The e2e pilot wrapper only read stdin when the argv carried a --stdin flag (the pii-scan pattern), so scan-prompt calls with no --text argv left input undefined, skipped the deny override, and forwarded empty stdin to the real CLI — the plugin fail-opened and gateway-probes could not find the expected pass/deny signals. Read stdin once for scan-prompt when no --text argv is present, use it for both override matching and forwarding to the real CLI. Backward compat: scan-code (--code argv) and scan-pii (--stdin flag) unchanged. Closes #2373 Assisted-by: Qoder:1.22.1 Signed-off-by: Shirong Hao <shirong@linux.alibaba.com>
Bump the component manifest, CLI package, and all six agent plugin manifests to 0.10.1. Record the two release fixes in CHANGELOG.md and add the matching RPM spec changelog entry. Version strings and release notes only; no scanner, hook, or daemon behavior changes here. Signed-off-by: yizheng <YiZheng.Yang@linux.alibaba.com>
yangdao479
requested review from
RemindD,
casparant,
edonyzpc and
kid9
as code owners
August 14, 2026 09:31
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6000d0058e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
edonyzpc
approved these changes
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
What changed
Related issue
User / Agent impact
Risk and compatibility
Validation
Documentation and rollback